import Vue from 'vue'
import App from './App.vue'
import router from './router'
// 按需加载
import {
  Button, Icon, Tabbar, TabbarItem, NavBar,
  Form,
  Field,
  Toast,
  Swipe,
  SwipeItem,
  Image as VanImage,
  Grid,
  GridItem,
  Picker,
  Popup,
  IndexBar,
  IndexAnchor,
  Cell
} from 'vant'
Vue.use(Swipe)
Vue.use(SwipeItem)
Vue.use(Button)
Vue.use(Icon)
Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.use(NavBar)
Vue.use(Form)
Vue.use(Field)
Vue.use(Toast)
Vue.use(VanImage)
Vue.use(Grid)
Vue.use(GridItem)
Vue.use(Picker)
Vue.use(Popup)
Vue.use(IndexBar)
Vue.use(IndexAnchor)
Vue.use(Cell)
Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
